//
//  CustomKits.h
//  苏州银行
//
//  Created by rimi on 15/8/20.
//  Copyright (c) 2015年 IOS. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface CustomKits : NSObject
//有回调的自适应UILabel
+ (UILabel *)labelWithOrigin:(CGPoint)origin//初始位置
                        Text:(NSString *)text
                    FontSize:(CGFloat)fontSize
               TextAlignment:(NSTextAlignment)textAlignment
                   TextColor:(UIColor *)textColor
             BackGroundColor:(UIColor *)backColor
                CornerRadius:(CGFloat)radius
                 BorderWidth:(CGFloat)width
                 BorderColor:(UIColor *)borderColor
                    MaxWidth:(CGFloat)MaxWidth
                      finalY:(void(^)(CGFloat finalY))finalY;//回调label最终Y位置
//普通UILabel
+ (UILabel *)labelWithFrame:(CGRect)frame
                       Text:(NSString *)text
                   FontSize:(CGFloat)fontSize
              TextAlignment:(NSTextAlignment)textAlignment
                  TextColor:(UIColor *)textColor
            BackGroundColor:(UIColor *)backColor
               CornerRadius:(CGFloat)radius
                BorderWidth:(CGFloat)width
                BorderColor:(UIColor *)borderColor;

//普通的UIButton
+ (UIButton *)buttonWithFrame:(CGRect)frame
                        Title:(NSString *)title
               BackGroudImage:(UIImage *)image
              BackGroundColor:(UIColor *)color
                    TextColor:(UIColor *)textColor
                 CornerRadius:(CGFloat)radius
                  BorderWidth:(CGFloat)width
                  BorderColor:(UIColor *)borderColor;







@end
